import http from "@/utils/http";
const prefixUrl = {
  query: "/analysis/certification/list",
  selectDataById: "/analysis/certification/detail",
  update: "/analysis/certification/assign",
  queryDataById: "/analysis/certification/info",
  queryAuditList: "/analysis/certification/audit/list",
  updateAudit: "/analysis/certification/audit",
  agreeAudit: "/analysis/certification/agree", // 不存在
  refuseAudit: "/analysis/certification/refuse", // 不存在
  queryAuditById: "/analysis/certification/audit/detail", // 不存在
};
export default {
  role: {
    query: "POST:" + prefixUrl.query,
    selectDataById: "POST:" + prefixUrl.selectDataById,
    update: "POST:" + prefixUrl.update,
    queryDataById: "POST:" + prefixUrl.queryDataById,
    queryAuditList: "POST:" + prefixUrl.queryAuditList,
    updateAudit: "POST:" + prefixUrl.updateAudit,
    agreeAudit: "POST:" + prefixUrl.agreeAudit,
    refuseAudit: "POST:" + prefixUrl.refuseAudit,
    queryAuditById: "POST:" + prefixUrl.queryAuditById,
  },
  query(params = {}) {
    return http.post(prefixUrl.query, params);
  },
  selectDataById(params = {}) {
    return http.post(prefixUrl.selectDataById, params);
  },
  update(params = {}) {
    return http.post(prefixUrl.update, params);
  },
  queryDataById(params = {}) {
    return http.post(prefixUrl.queryDataById, params);
  },
  queryAuditList(params = {}) {
    return http.post(prefixUrl.queryAuditList, params);
  },
  updateAudit(params = {}) {
    return http.post(prefixUrl.updateAudit, params);
  },
};
